package com.atguigu.gmall.product.mapper;

import com.atguigu.gmall.model.product.BaseAttrInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @program: gmall-parent
 * @author: Mr.Zhuo
 * @create: 2022-04-02 14:40
 **/
@Component
public interface BaseAttrInfoMapper extends BaseMapper<BaseAttrInfo> {

    //根据分类Id 获取平台属性数据
    List<BaseAttrInfo> selectAttrInfoList(@Param("category1Id") Long category1Id,
                                          @Param("category2Id") Long category2Id,
                                          @Param("category3Id") Long category3Id);

    //通过skuId 集合来查询数据
    List<BaseAttrInfo> selectAttrList(Long skuId);

}
